<template>
  <div class="lis-jcsj-zkbb-add">
    <div class="z-row z-flex--wrap">
      <!-- <el-form-item label="项目类别" label-width="80">
        <el-select v-model="addFormData.xmlb"></el-select>
      </el-form-item>
      <el-form-item label="细菌标志" label-width="80">
        <el-select v-model="addFormData.xjbz"></el-select>
      </el-form-item> -->
      <el-form-item label="仪器" label-width="80">
        <el-select v-model="addFormData.yq" disabled>
          <el-option v-for="it in yqList" :key="it.id" :label="it.yqmc" :value="it.id"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="检索码" label-width="80">
        <el-input v-model="addFormData.jsm"></el-input>
      </el-form-item>
      <el-button @click="query" type="success" class="z-btn-start">查询</el-button>
      <el-button @click="addRest" type="warning">清除</el-button>
      <el-button @click="save" type="primary">确定</el-button>
      <!-- <el-button @click="e">退出</el-button> -->
    </div>
    <el-table :data="tableData" height="600" ref="table" stripe>
      <el-table-column type="selection" fixed />
      <el-table-column label="仪器名称" width="200" prop="yqmc" fixed />
      <el-table-column label="质控名称" width="120" prop="mc" fixed />
      <el-table-column label="批号" width="90" prop="ph" />
      <el-table-column label="生产厂家" width="200" prop="sccj" />
      <el-table-column label="供应商" width="180" prop="gys" />
      <el-table-column label="启用日期" width="180" prop="qyrq" />
      <el-table-column label="有效期" width="180" prop="yxq" />
      <el-table-column label="实际供应商" width="180" prop="sjgys" />
    </el-table>
  </div>
</template>
<script lang="ts" setup>
import { zkbbAddEmits, zkbbAddProps } from './prop'
import { yqList } from '@utils'
import { use } from './use'
defineOptions({
  name: 'lis-jcsj-zkbb-add'
})
const props = defineProps(zkbbAddProps)
const emit = defineEmits(zkbbAddEmits)
const { addFormData, addRest, query, save, tableData, clear, table } = use(props, emit)
defineExpose({
  clear
})
</script>
<style lang="scss">
.lis-jcsj-zkbb-add {
  width: 100%;
  .el-form-item {
    width: 33.33%;
  }
  .el-table {
    width: 100%;
  }
  .z-btn-start {
    margin-left: 0.08rem;
  }
}
</style>
